package xin.nick.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * <p>
 * 任务
 * </p>
 *
 * @author Nick
 * @since 2023-06-22
 */
@Getter
@Setter
@TableName("t_task")
@Schema(description = "Task对象-任务")
public class Task {

    @Schema(description = "任务id")
    @TableId(value = "task_id", type = IdType.AUTO)
    private Long taskId;

    @Schema(description = "任务名字")
    @TableField("task_name")
    private String taskName;

    @Schema(description = "任务描述")
    @TableField("task_description")
    private String taskDescription;

    @Schema(description = "任务内容")
    @TableField("task_content")
    private String taskContent;

    @Schema(description = "任务类型")
    @TableField("tesk_type")
    private String teskType;

    @Schema(description = "任务状态")
    @TableField("task_state")
    private String taskState;

    @Schema(description = "任务开始时间")
    @TableField("begin_time")
    private LocalDateTime beginTime;

    @Schema(description = "任务结束时间")
    @TableField("end_time")
    private LocalDateTime endTime;

    @Schema(description = "备注")
    @TableField("remark")
    private String remark;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Schema(description = "创建人id")
    @TableField("create_user_id")
    private Integer createUserId;

    @Schema(description = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @Schema(description = "更新人id")
    @TableField("update_user_id")
    private Integer updateUserId;

    @Schema(description = "是否删除")
    @TableField("deleted")
    @TableLogic
    private Boolean deleted;


}
